#include "mainwindow.h"

#include <QApplication>

#include<QtSerialPort/QtSerialPort>

int main(int argc, char *argv[])
{

    qDebug()<<"serial port info";
    QList<QSerialPortInfo> ports = QSerialPortInfo::availablePorts();
    foreach(int i,QSerialPortInfo::standardBaudRates()){
        qDebug()<<"standardBaudRate:"<<i;
    }
    auto it  = ports.begin();

    while (it != ports.end()) {
        qDebug()<<it->portName()<<" "<<it->serialNumber();
        it++;
    }

    QApplication a(argc, argv);
    MainWindow w;
    w.show();
    return a.exec();
}
